package db;
import java.sql.*;

public class DBConnection {
	public Connection getConnection() {
		Connection conn=null;
		String driver = "com.mysql.jdbc.Driver";
		String url = "jdbc:mysql://localhost:3306/system_manage";
		String user = "root";
		String password="123456";
		try
		{
			Class.forName(driver);
			conn = DriverManager.getConnection(url, user, password);
		}catch(Exception ex)
		{
			ex.printStackTrace();
		}
		return conn;
	}
}
